/*
 * File: AltFilter.h
 *
 * Real-Time Workshop code generated for Simulink model AltFilter.
 *
 * Model version                        : 1.9
 * Real-Time Workshop file version      : 7.4  (R2009b)  29-Jun-2009
 * Real-Time Workshop file generated on : Fri Mar 12 00:19:35 2010
 * TLC version                          : 7.4 (Jul 14 2009)
 * C/C++ source code generated on       : Fri Mar 12 00:19:35 2010
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Texas Instruments->C2000
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_AltFilter_h_
#define RTW_HEADER_AltFilter_h_
#ifndef AltFilter_COMMON_INCLUDES_
# define AltFilter_COMMON_INCLUDES_
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#endif                                 /* AltFilter_COMMON_INCLUDES_ */

#include "AltFilter_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
#endif

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  real_T Xk[2];                        /* '<Root>/AltFilter' */
  real_T Pk[4];                        /* '<Root>/AltFilter' */
} D_Work_AltFilter;

/* External inputs (root inport signals with auto storage) */
typedef struct {
  real_T Zalt;                         /* '<Root>/Zalt' */
} ExternalInputs_AltFilter;

/* External outputs (root outports fed by signals with auto storage) */
typedef struct {
  real_T alt;                          /* '<Root>/alt' */
  real_T velocity;                     /* '<Root>/velocity' */
} ExternalOutputs_AltFilter;

/* Real-time Model Data Structure */
struct RT_MODEL_AltFilter {
  const char_T * volatile errorStatus;
};

/* Block states (auto storage) */
extern D_Work_AltFilter AltFilter_DWork;

/* External inputs (root inport signals with auto storage) */
extern ExternalInputs_AltFilter AltFilter_U;

/* External outputs (root outports fed by signals with auto storage) */
extern ExternalOutputs_AltFilter AltFilter_Y;

/* Model entry point functions */
extern void AltFilter_initialize(void);
extern void AltFilter_step(void);
extern void AltFilter_terminate(void);

/* Real-time Model object */
extern RT_MODEL_AltFilter *AltFilter_M;

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Note that this particular code originates from a subsystem build,
 * and has its own system numbers different from the parent model.
 * Refer to the system hierarchy for this subsystem below, and use the
 * MATLAB hilite_system command to trace the generated code back
 * to the parent model.  For example,
 *
 * hilite_system('alttest/AltFilter')    - opens subsystem alttest/AltFilter
 * hilite_system('alttest/AltFilter/Kp') - opens and selects block Kp
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : alttest
 * '<S1>'   : alttest/AltFilter
 */
#endif                                 /* RTW_HEADER_AltFilter_h_ */

/*
 * File trailer for Real-Time Workshop generated code.
 *
 * [EOF]
 */
